﻿@model WebDauGia.Models.SanPhamsListViewModel
@using WebDauGia.HtmlHelpers
@{
    ViewBag.Title = "DSSanPhamTheoLoai";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@foreach (var p in Model.SanPhams)
{
    //Html.RenderPartial("SanPham", p);
    <div class="col col_14 product_gallery">
        <h3>@p.ten</h3>
        <a href="@Url.Action("ChiTietSanPham", "SanPham", new { id = p.id })"> <img src="../images/07.jpg" /> </a>
        <p class="product_price">Giá bán: @p.giaban.Value.ToString("c")</p>
        <p class="product_price">Giá khởi điểm: @p.giakhoidiem.Value.ToString("c")</p>
        <a href="shoppingcart.html" class="add_to_cart">Đấu giá</a>
    </div>
}
<div class="pager">
    @Html.PageLinks(Model.PagingInfo, x => Url.Action("List", new { page = x, loaisp = Model.CurrentCategory }))
</div>

